package com.zcbl.toolkit.util;

/**
 * @author he peng
 * @create 2018/4/25 14:15
 * @see
 */
public class Assert {

    private Assert() {}

    public static void range(double min , double max , double val , String errorMsg) {
        if (min > val || val > max) {
            throw new IllegalArgumentException(errorMsg);
        }
    }
}
